<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>OpenParty {% block title %}{% endblock %}</title>
        <link rel="shortcut icon" href="{{ MEDIA_URL }}favicon.ico" />
        <link rel="stylesheet" type="text/css" media="screen" href="{{ MEDIA_URL }}css/reset.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="{{ MEDIA_URL }}css/960.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="{{ MEDIA_URL }}css/type.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="{{ MEDIA_URL }}css/openparty.css" />
        {% block extra_head %}{% endblock %}
    </head>
    <body>
        <div id="header">
            {% if messages %}
            <ul class="messages" class="grid_12">
            {% for message in messages %}
              <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message|safe }}</li>
            {% endfor %}
            </ul>
            <div class="clear"></div>
            {% endif %}
        </div>
        
        {% block content %}{% endblock %}
        
        <div class="clear"></div>

        <div id="footer" class="container_12">
            <div class="grid_12">
                <p>
                    &copy; 2010 www.beijing-open-party.org
                    <br/>
                    Powered by <a href="http://djangoproject.com" target="_blank">Django</a>
                    + <a href="http://code.google.com/p/openparty" target="_blank">OpenParty app</a>
                </p>
                <ul class="links">
                    <li>
                        <a href="mailto:dev@beijing-open-party.org">Contact</a>
                    </li>
                    <li>
                        <a href="/feed">RSS Feed</a>
                    </li>
                    <li>
                        <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS Validator</a>
                    </li>
                    <li>
                        <a href="http://validator.w3.org/check?uri=referer">XHTML Validator</a>
                    </li>
                </ul>
            </div>
        </div>

        {% if debug %}{% include "debug.html" %}{% else %}{% include "analytics.html" %}{% endif %}
        {% block extra_body %}{% endblock %}
    </body>
</html>
